package cn.com.hd.mall.web.webservices.entity.freedom.entity.coupon;

import cn.com.hd.mall.web.webservices.entity.freedom.response.base.BaseCouponData;

/**
 * User: Geek_Soledad(wuhaiyang@danlu.com)
 * Date: 2016-09-26
 * Time: 11:54
 * Description: .....
 */
public class CouponEntity extends BaseCouponData {
    private String couponCode;
    private String orderNo;
    private String couponName;
    private String couponStatus;
    private String timeLeft;
    private String merchId;
    // 额外字段 标注当前是否被选中 不参与任何业务
    private boolean isChecked;
    // 红包真实消费
    private String mFactUse;

    @Override
    public String toString () {
        //        return super.toString () +
        return "CouponEntity{" +
                "couponCode='" + couponCode + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", couponName='" + couponName + '\'' +
                ", couponStatus='" + couponStatus + '\'' +
                ", timeLeft='" + timeLeft + '\'' +
                ", merchId='" + merchId + '\'' +
                ", isChecked=" + isChecked +
                ", mFactUse='" + mFactUse + '\'' +
                '}';
    }

    public String getFactUse () {
        return mFactUse;
    }

    public void setFactUse (String mFactUse) {
        this.mFactUse = mFactUse;
    }

    public boolean isChecked () {
        return isChecked;
    }

    public void setIsChecked (boolean isChecked) {
        this.isChecked = isChecked;
    }

    public String getCouponCode () {
        return couponCode;
    }

    public void setCouponCode (String couponCode) {
        this.couponCode = couponCode;
    }

    public String getOrderNo () {
        return orderNo;
    }

    public void setOrderNo (String orderNo) {
        this.orderNo = orderNo;
    }

    public String getCouponName () {
        return couponName;
    }

    public void setCouponName (String couponName) {
        this.couponName = couponName;
    }

    public String getCouponStatus () {
        return couponStatus;
    }

    public void setCouponStatus (String couponStatus) {
        this.couponStatus = couponStatus;
    }

    public String getTimeLeft () {
        return timeLeft;
    }

    public void setTimeLeft (String timeLeft) {
        this.timeLeft = timeLeft;
    }

    public String getMerchId () {
        return merchId;
    }

    public void setMerchId (String merchId) {
        this.merchId = merchId;
    }

    @Override
    public boolean equals (Object obj) {
        return !(null == obj || !(obj instanceof CouponEntity)) && ((CouponEntity) obj).couponCode.equals (couponCode);
    }
}
